<?php 
$id= $_GET["id"];
$sql = "select * from khoa where ID=".$id;
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<form name="form1" method="post" action="?mod=qlk&act=updateOk" enctype="multipart/form-data">
<input name="id" type="hidden" value="<?php echo $row["ID"] ?>">

  <p>M&atilde; Kh&oacute;a:
    <input type="text" name="maKhoa" value="<?php echo $row["maKhoa"]?>">
  </p>
  <p>T&ecirc;n Kh&oacute;a: 
    <input type="text" name="tenKhoa" value="<?php echo $row["tenKhoa"]?>">
  </p>
  <p>Ni&ecirc;n Kh&oacute;a: 
    <input type="text" name="nienKhoa" value="<?php echo $row["nienKhoa"]?>">
  </p>
  <p>
    <input type="submit" name="Submit" value="L&#432;u">
  </p>
</form>
